From: Florian Müllner Date: Fri, 18 Feb 2011 01:33:41 +0000 (+0100) Subject: panel-buttons: Remove transitions for corner buttons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8927 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=526384320ebc8155dcdefd039c7b6a0928f95381;p=gnome-shell.git panel-buttons: Remove transitions for corner buttons So far transitions do not work for the custom drawn corners, so to avoid a visible glitch when transitioning a button in the panel corner while updating the style of the apparently attached corner instantly, remove transition of those panel buttons until we make it work for the custom drawn parts as well. https://bugzilla.gnome.org/show_bug.cgi?id=642697 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 843587baf..729c51f27 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -269,10 +269,16 @@ StTooltip StLabel { icon-shadow: black 0px 2px 2px; } +/* The rounded panel corners we draw don't + * support transitions, so disable transitions + * for the buttons at the left/right edges + */ #panelActivities { + transition-duration: 0; } #panelStatus { + transition-duration: 0; } #panelStatusMenu { diff --git a/js/ui/panel.js b/js/ui/panel.js index c1da9e4f1..f45af435f 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -871,6 +871,7 @@ Panel.prototype = { this._rightBox.add(this._statusBox); this._statusmenu = new StatusMenu.StatusMenuButton(); + this._statusmenu.actor.name = 'panelStatus'; this._menus.addMenu(this._statusmenu.menu); this._rightBox.add(this._statusmenu.actor);